<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <title> 导航 </title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
  <script>
    //设置根节点的font-size属性以适用rem布局
    function setHtmlFontSize() {
      var deviceWidth = document.documentElement.clientWidth;
      document.documentElement.style.fontSize = deviceWidth / 7.5 + 'px';
    }
    setHtmlFontSize();
    //横竖屏切换事件
    window.addEventListener("resize", function () { setHtmlFontSize() }, false);
  </script>
  <style>
    body {
      width: 7.5rem;
      margin: 0 auto;
      padding: 0.6rem 0 1.2rem;
    }

    hr {
      margin: 0.3rem 0;
    }

    p {
      width: 90%;
      margin: 0.2rem auto;
    }

    p>a {
      display: block;
      height: 0.9rem;
      background: green;
      border-radius: 0.15rem;
      color: #fff;
      font-size: 0.4rem;
      line-height: 0.9rem;
      text-align: center;
      text-decoration: none;
    }
  </style>
</head>

<body>
  <p><a href="test.html" target="_blank">测试页面</a></p>
  <p><a onclick="window.open('test.html?t='+Date.now(),'_blank')">测试页面(带时间戳)</a></p>
  <p><a href="laohuji.html" target="_blank">老虎机</a></p>
  <p><a href="sscAnimate.html" target="_blank">双色球</a></p>
  <p><a href="canvasLine.html" target="_blank">折线图</a></p>
  <p><a href="daojishi.html" target="_blank">倒计时</a></p>
</body>

</html>